package com.jrx.anytxn.reporting.job.unionFile.step;

import com.jrx.anytxn.reporting.service.IUnionFileService;
import com.jrx.anytxn.transaction.entity.AmRepaymentPlanInfo;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RepayPlanFileProcessor implements ItemProcessor<AmRepaymentPlanInfo, String> {

    @Autowired
    private IUnionFileService unionFileService;

    @Override
    public String process(AmRepaymentPlanInfo item) throws Exception {
        return unionFileService.createRepayPlanFileMessage(item);
    }
}
